import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'


import App from './containers/app'
import store from './redux/store'




console.log('index1', store)
console.log('index2', store.getState)

//  安裝 redux-thunk
//  redux 异步编程 (redux插件)
//  cnpm install --save redux-thunk

// 初始化渲染
ReactDOM.render(
  <React.StrictMode>
    <Provider store={store}>
      <App />
    </Provider>
  </React.StrictMode>,
  document.getElementById('root')
);
